package my.jieh.tips.swing.order;

import java.awt.*;
import javax.swing.*;
import java.util.*;

/**
 * <p>Title: Core Java Technologies Tech Tips</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2002</p>
 * <p>Company: Blueimp</p>
 * @author jieh
 * @version 1.0
 */

public class AlphaOrderFocusTraversalPolicy
    extends SortingFocusTraversalPolicy {
  AlphaOrderFocusTraversalPolicy() {
    super(new AlphaOrder());
  }

  protected boolean accept(Component aComp) {
    if (aComp instanceof JButton) {
      return super.accept(aComp);
    }
    return false;
  }
}

